<extend name='Index:index'/>
<block name='admin_right'>
	<div class="right col-md-9">
			<table class="table table-bordered">
				<tr>
					<th>序号</th>
					<th>广告图片</th>
					<th>广告位置</th>
					<th class="col-md-3">广告链接</th>
					<th>修改</th>
					<th>删除</th>
				</tr>
				<volist name='rows' id='row'>
				<tr>
					<td style='line-height: 200px;'><{$row['id']}></td>
					<td style='line-height: 200px; '><img src="__PUBLIC__/upload/t_<{$row['img']}>"   alt=""></td>
					<!-- 以下代码可以把例：0，1替换成上，右 -->
					<td style='line-height: 200px;'>
					<?php
						
						$arr=array(
							'0'=>'上',
							'1'=>'右',
							'2'=>'下',
							'3'=>'左'
							);
						echo strtr($row['pos'],$arr);
					?>
					</td>
					<!-- <td style='line-height: 50px;'><{$row['pos']}></td> -->
					<td style='line-height: 50px;'><{$row['url']}></td>
					<td style='line-height: 200px;'><a href="<{:U('edit','','')}>/id/<{$row['id']}>">修改</a></td>
					<td style='line-height: 200px;'><a href="<{:U('delete','','')}>/img/<{$row['img']}>/id/<{$row['id']}>">删除</a></td>
				</tr>
				</volist>
			</table>
			<p><{$show}></p>
	</div>
</block>